<!DOCTYPE HTML>
<?php
session_start(); 

require_once("includes/header.php");
require_once("includes/functions_reputacion.php");
//require_once("includes/connection_db.php");
$_SESSION["escala_exp"] = 0.007;
$_SESSION["escala_rc"] = 1;
$_SESSION["escala_act"] = 1;
//$_SESSION["Tomcat_Server"] = "http://localhost:8084/";   // Para trabajar localmente
$_SESSION["Tomcat_Server"] = "http://150.214.108.51:8084/";   // Para trabajar en el servidor de datos

if ((!empty($_SESSION['usuario_nombre'])) && (isset($_SESSION['usuario_perfil'])))
{	
	global $conexion;
	$single_status_menu["procesar"] = false;
	top_menu_geran(false, $single_status_menu, 0);
	
	// Control de variables para mostrar menu
	$btn_gestion = (in_array(array("Gestión",1), $_SESSION["menusperfil"])) ? "type=\"button\" " : "type=\"button\" disabled ";
	$btn_experiencia = (in_array(array("Experiencia", 1), $_SESSION["menusperfil"])) ? "type=\"button\" " : "type=\"button\" disabled ";
	$btn_rc = (in_array(array("RC", 1), $_SESSION["menusperfil"])) ? "type=\"button\" " : "type=\"button\" disabled ";
	$btn_actitudes = (in_array(array("Actitudes", 1), $_SESSION["menusperfil"])) ? "type=\"button\" " : "type=\"button\" disabled ";
	$btn_negocio = (in_array(array("Negocio", 1), $_SESSION["menusperfil"])) ? "type=\"button\" " : "type=\"button\" disabled ";
	
	echo "<div class=\"right-side span11 offset1\">
        <div class=\"diagram diagram-horizontal\" style=\"width:1200px\">
            <div class=\"row-fluid\">";
			
	echo "<button class=\"btn btn-large btn-primary btn-diagram\" " . $btn_gestion . "onclick=\"window.location.href = 'gestion.php';\">Gestión</button>
				<i class=\"icon-arrow-right icon-large icon-blue icon-space\"></i>";
	
	echo "<button class=\"btn btn-large btn-primary btn-diagram\" " . $btn_experiencia . "onclick=\"window.location.href = 'experiencia.php';\">Experiencia</button>
				<i class=\"icon-arrow-right icon-large icon-blue icon-space\"></i>";

	echo "<button class=\"btn btn-large btn-primary btn-diagram\" " . $btn_rc . "onclick=\"window.location.href = 'rc.php';\">RC</button>
				<i class=\"icon-arrow-right icon-large icon-blue icon-space\"></i>";
				
	echo "<button class=\"btn btn-large btn-primary btn-diagram\" " . $btn_actitudes . "onclick=\"window.location.href = 'actitudes.php';\">Actitudes</button>
				<i class=\"icon-arrow-right icon-large icon-blue icon-space\"></i>";
				
	echo "<button class=\"btn btn-large btn-primary btn-diagram\" " . $btn_negocio . "onclick=\"window.location.href = 'negocio.php';\">Negocio</button>";
	echo "</div>";
	
    echo "<div class=\"row-fluid\" style=\"margin-top: -25px; margin-left: 50px;\">";
	echo "<button class=\"btn btn-large btn-diagram\" " . $btn_gestion . ">Inversiones Indicadores</button>
				<i class=\"icon-large icon-blue icon-space\"></i>";
				
	echo "<button class=\"btn btn-large btn-diagram\" " . $btn_experiencia . ">Dimensiones</button>
				<i class=\"icon-large icon-blue icon-space\"></i>";
				
	echo "<button class=\"btn btn-large btn-diagram\" " . $btn_rc . ">Atractivo Emocional</button>
				<i class=\"icon-large icon-blue icon-space\"></i>";
				
	echo "<button class=\"btn btn-large btn-diagram\" " . $btn_actitudes . ">Recomendaciones Intenc. Conductas</button>
				<i class=\"icon-large icon-blue icon-space\"></i>";
	
	echo "<button class=\"btn btn-large btn-diagram\" " . $btn_negocio . ">Indicadores de valor</button>";      
	echo "		</div>
        </div>
    </div>";
}
else
{
	require_once("includes/no_autenticado.php");
}    
	
require_once("includes/footer.php");
?>